﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LiuYan.Service;
using LiuYan.Web.Controllers;

namespace LiuYan.Web.Areas.Mall.Controllers
{
    public class DiscountController : BaseController
    {
        //
        // GET: /Mall/Index/

        public ActionResult DiscountIndex()
        {
            ViewData["goodsort"] = new SortService().GetDList();
            return View();
        }

        /// <summary>
        /// 获取折扣商品
        /// </summary>
        /// <param name="sId"></param>
        /// <returns></returns>
        public DataTable GetDGoods(int sId)
        {
            return new GoodService().GetDiscountList(sId);
        }

    }
}
